<?php include('includes/global_security.php'); ?>
<?php
	global_variables::$title_section = "Users";
	switch($action){
		case "create":
			global_variables::$title_section .= " - Create";
			FunctionsFactory::getFactory()->includeHead();
			$user = new userM(); //Limpiamos el objeto user, por si aun persiste
			include('screen/users/users.form.php');
			break;
		case "edit":
			global_variables::$title_section .= " - Edit";
			FunctionsFactory::getFactory()->includeHead();
			include('screen/users/edit.php'); //Cargaremos el objeto User
			// La inclusion de la pantalla add la controlara el edit.php
			// include('screen/users/add.php');
			break;
		default:
			FunctionsFactory::getFactory()->redirect();
			break;
	}
?>